import Vue from 'vue'
import Router from 'vue-router'
import Login from  '@/components/Login'
import Index from '@/components/Index'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Login',
      component: Login
    },
    {
      path: '/i',
      name: 'Index',
      component: Index,
      redirect: '/i/system/adminuser',
      children: [
        {
        path: '/i/system/adminuser',
        name: 'adminuser',
        component: () => import('@/components/AdminUserManager'),
        meta: {
          title: '用户管理'
        }
      },
      {
        path: '/i/system/role',
        name: 'role',
        component: () => import('@/components/RoleManager'),
        meta: {
          title: '角色管理'
        }
      },
      {
        path: '/i/system/module',
        name: 'module',
        component: () => import('@/components/ModuleManager'),
        meta: {
          title: '模块管理'
        }
      },
      {
        path: '/i/system/wsm',
        name: 'wsm',
        component: () => import('@/components/WebSystemMuenManager'),
        meta: {
          title: '系统菜单管理'
        }
      },
      {
        path:'/i/ststem/dictionary',
        name:'dictionary',
        component: () => import('@/components/Dictionary_Settings'),
        meta: {
          title: '系统菜单管理'
        }
      },
      {
        path:'/i/customer_information_add',
        name:'customer_information_add',
        component: () => import('@/components/Customer_information_add'),
        meta: {
          title: '用户信息添加'
        }
      },
      {
        path:'/i/customer_information_list',
        name:'customer_information_list',
        component: () => import('@/components/customer_information_list'),
        meta: {
          title: '用户信息显示'
        }
      },
      {
        path:'/i/Architectural_Title',
        name:'Architectural_Title',
        component: () => import('@/components/Architectural_Title'),
        meta: {
          title: '用户信息显示'
        }
      
      },
      {
        path:'/i/CustomerInput',
        name:'CustomerInput',
        component: () => import('@/components/CustomerInput'),
        meta: {
          title: '客户录入'
        }
      },
      {
        path:'/i/qualification_management',
        name:'qualification_management',
        component: () => import('@/components/qualification_management'),
        meta: {
          title: '客户录入'
        }
      },
      {
        path:'/i/contract_add',
        name:'contract_add',
        component: () => import('@/components/contract_add'),
        meta: {
          title: '用户信息显示'
        }
      },
      {
        path:'/i/contract_list',
        name:'contract _list',
        component: () => import('@/components/contract_list'),
        meta: {
          title: '用户信息显示'
        }
      },
      {
        path:'/i/contact_Information',
        name:'contact_Information _list',
        component: () => import('@/components/contact_Information'),
        meta: {
          title: '信息列表'
        }
      },
      {
        path:'/i/pre_project_information',
        name:'contact_Information _list',
        component: () => import('@/components/pre_project_information'),
        meta: {
          title: '项目前期信息'
        }
      },
      {
        path:'/i/ststem/department_manager',
        name:'contact_Information _list',
        component: () => import('@/components/department_manager'),
        meta: {
          title: '部门管理'
        }
      },
      {
        path:'/i/ststem/personnel_management',
        name:'contact_Information _list',
        component: () => import('@/components/personnel_management'),
        meta: {
          title: '人员管理'
        }
      },
      {
        path:'/i/leave_application_list',
        name:'leave_application_list',
        component: () => import('@/components/leave_application_list'),
        meta: {
          title: '请假申请列表'
        }
      },
      {
        path:'/i/travel_application_list',
        name:'travel_application_list',
        component: () => import('@/components/travel_application_list'),
        meta: {
          title: '出差申请列表'
        }
      },
      {
        path:'/i/field_application_list',
        name:'field_application_list',
        component: () => import('@/components/field_application_list'),
        meta: {
          title: '外勤申请列表'
        }
      },
      {
        path:'/i/attendance_request_list',
        name:'attendance_request_list',
        component: () => import('@/components/attendance_request_list'),
        meta: {
          title: '考勤申请'
        }
      },
      {
        path:'/i/project_set_up',
        name:'project_set_up',
        component: () => import('@/components/project_set_up'),
        meta: {
          title: '项目立项A'
        }
      },
      {
        path:'/i/project_list',
        name:'project_list',
        component: () => import('@/components/project_list'),
        meta: {
          title: '项目信息列表'
        }
      },
      {
        path:'/i/nolockup_application_list',
        name:'nolockup_application_list',
        component: () => import('@/components/nolockup_application_list'),
        meta: {
          title: '未打卡申请列表'
        }
      },
      {
        path:'/i/department_activity_application_list',
        name:'department_activity_application_list',
        component: () => import('@/components/department_activity_application_list'),
        meta: {
          title: '公司活动申请'
        }
      },
      {
        path:'/i/company_activity_application_list',
        name:'company_activity_application_list',
        component: () => import('@/components/company_activity_application_list'),
        meta: {
          title: '公司活动申请'
        }
      },
      {
        path:'/i/nolockup_application_list',
        name:'nolockup_application_list',
        component: () => import('@/components/nolockup_application_list'),
        meta: {
          title: '未打卡申请列表'
        }
      },
      {
        path:'/i/overtime_leave_application_list',
        name:'overtime_leave_application_list',
        component: () => import('@/components/overtime_leave_application_list'),
        meta: {
          title: '加班离岗申请'
        }
      },
    ]
    },
    {
      path: '/leaveApplyForList',
      name: 'LeaveApplyForList',
      component: () => import('@/components/LeaveApplyForList'),
    },
  ]
})
